package com.lagou.dao;

import com.lagou.domain.User;

import java.io.IOException;
import java.util.List;

/**
 * @program: mybatis_quickStarter
 * @description:
 * @author: wyw
 * @create: 2020-01-14 17:07
 */
public interface IUserDao {
    /**
     * 查询所有
     * @return
     * @throws IOException
     */
    List<User> findAll() throws IOException;

    /**
     * 多条件组合查询，演示if
     * @return
     */
    public List<User> findByCondition(User user);

    /**
     * 多值查询：演示foreach
     */
    public List<User> findByIds(int[] ids);
}
